const { Worker, isMainThread, parentPort, workerData } = require('worker_threads');
// const model = require('../../model/model.config')
const path = require('path')
async function run() {
    console.log(path.resolve(__dirname), path.basename(__filename))
    // const { data, table } = workerData
    // for (let item of data) {
    //     const { start, end, weight } = item
    //     // console.log(moment().format("YYYY-MM-DD HH:mm:ss"))
    //     await model.getAList(`INSERT INTO ${table} set gp_start = '${start}',gp_end = '${end}',gp_weight = '${weight}'`)
    //     // console.log(item)
    //     // let sql = `INSERT INTO ${table} set ?`;
    //     // await model.addList(sql, table, item);
    // }
    // console.log('已完成')
}
// run();
// export {
//     model,
//     run
// }

